home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_1
/
lotery40.zip
/
LOTTERY.DOC
< prev
next >
Wrap
Text File
|
1992-06-08
|
10KB
|
228 lines
LOTTERY 4.0
===========
A Livewire BBS Game Door
PCBoard(TM) 14.5+
By
Richard Paquette
PO Box 416
Mt. Laurel, NJ 08054
(C) Copyright 1990
All Rights Reserved
Supporting PCBoard, Wildcat!, Gap, QBBS, RBBS,
Remote Access, SpitFire, WWIV plus others.
GAME DESCRIPTION!
This is a quick and simple game that allows callers to play a game of
lottery for a prize that you configure. Simply set how many times you want a
caller allowed in each day.. enter your registration number and then include
a line with the prize for winners. That's it.. then they try a pick-3 or a
pick-4 lottery game.. they can play as often as they want to once they are in
the door, but remember that "YOU" decide how many times they can open the door.
We have added couple more prizes so that callers can win when they
match either the first two or last two numbers in pick-3 and in pick-4 they
can win with the first two, last two or middle two numbers. You decide the
prizes and be sure to list them correctly in the lottery.cfg file.
In futue updates, we plan to add a pick-6 instant game along with a
pick-9 weekly winner game, where the program will pick a ramdom number once a
week and display to all entering the door who won for that week and what the
prize was they won!
The door creates a file called "intoday.dat", this file is to monitor
how many times that caller entered the door today! You set in the config file
how many times they are allowed in.
If you delete this file, no record is kept and the caller will again be
able to enter to door freely. PLEASE do not delete this file.
IMPORTANT NOTE: There is now a feature where you can let a winner of
the Pick-3 or Pick-4 download a "Coupon" to redemm at your place of business.
For example, you own a Pizza Parlor and want to give the winner a free pizza
for the Pick-3 or Pick-4, then create with any ascii editor two files called,
"coupon3.dat" and "coupon4.dat", YOU MUST LEAVE THE FIRST LINE AS IS in the
example, we will write starting on Line 1, Column 17 the Ticket Number that is
assigned to THAT WINNER! The rest of the file can be anything you want such as
a discount coupon to be mailed in for access minus the value of the coupon or
anything that you are willing to offer. NOTE: if you don't want to use this
added feature, then rename or DELETE the coupon*.dat files. If they aren't
there, the program will act as usual, if they are there, after winning, the
door will take the winner to a download screen where they can download the
coupon to be printed and redemmed at your place of business.
The Ticket number is also written to the winner3.dat and winner4.dat
files for you to compare when someone brings in a winning coupon!
You can now charge time for each Pick-3 or Pick-4 attempt, if you put
a 0 on the last line of the cfg, they will not be charged any time, if you
decide to charge time to play the game and they win, the time is given back
to them along with your prizes.
=======
CONFIGURATION FILE
C:\PCB\PCBOARD.SYS <- Path/filename to PCBOARD.SYS
The Livewire BBS <- Name of BBS
Richard <- Sysop's first name
Paquette <- Sysop's last Name
5 <- Times allowed in Door
999999 <- Registration number (or some number)
Six Month Patron Membership <- Prize for the Pick-3 game (58 char max)
Three Month Patron Membership <- Small prize to match 2 numbers (53 max)
One Year Patron Membership <- Prize for the Pick-4 game (58 char max)
Three Month Patron Membership <- Small prize to match 2 numbers (53 max)
3 <- Time charged for each try in minutes
Please note that something must be on each line.. if you do not want to offer
prizes for matching two numbers, simply put "No prize" without the quotes.
=======
IMPORTANT NOTE FOR NON STANDARD IRQ's:
Supports COM 1 to 4 on the standard IRQ's
Com1/Com3 = IRQ4 and Com2/Com4 = IRQ3
You can make use of the IRQ environment variable
If you wish to use a non-standard IRQ, add the IRQ number after the
configuration filename. For example the program is STORE and you want to use
Com1 and IRQ5. The command line passed to your door would be:
STORE STORE.CFG /5
or
STORE STORE.CFG /%IRQ% using the environment variable
The /5 tells STORE to use IRQ5 rather than the standard IRQ4 that is
normally used with COM1. No /x parameter is needed for the standard IRQ's.
LOTTERY BATCH FILE
This is the batch file whose name is entered in PCBSETUP. It should reside in
your default PCB directory. Leave this as is except for changing the paths.
ECHO OFF
E:
CD\LOTTERY
LOTTERY LOTTERY.CFG <--- Please read NOTE below
C:
CD\PCB
BOARD
NOTE: Lottery requires the presence of BRT71EFR.EXE either in the
same directory as Lottery or accessible via PATH. If you set
your library in autoexec.bat and all the brun files there,
then you have no problems..
SET MYLIB = C:\MYLIB
Be sure to put all your brun*.exe files in the mylib directory!
We are able to read PCBoard variables for path and directory or
you can set your own, for example in the batch file:
c:\
cd\lottery
set pcbdrive=c: or whatever your "root" directory is like maybe d:
set pcbdir=\pcb or whatever your "home" directory is like maybe (cat)
lottery lottery.cfg
c:\
cd\pcb
board
Then your first line in the cfg file would look like this:
%PCBDRIVE%%PCBDIR%\users.sys <-- or whatever your system is
------------------------------------
DOOR OPERATION
--------------
F3 - Toggles the printer On/Off.
Value is passed to PCBoard.
F4 - Toggles the Page Bell On/Off.
Value is passed to PCBoard.
F5 - DOS Shell. Allows SysOp to exit to DOS from inside a DOOR.
F7 - Toggles the Caller Alarm On/Off.
Value is passed to PCBoard.
F8 - Returns the caller involuntarily to PCBoard.
Without letting them know that the sysop called them back!
F9 - Toggles the local display On/Off.
Value is passed to PCBoard.
F10 - Activates SysOp CHAT mode within the DOOR.
ESC - Deactivates CHAT mode. DOOR is resumed.
HOME - HELP key for status line options.
UP - Allows the SysOp to temporarily give the caller extra time
while in the DOOR. This time is NOT passed to PCBoard.
DN - Allows the SysOp to temporarily subtract time from the
caller while in the DOOR. This time is NOT passed to PCBoard.
ALT-N - SysOp next on toggle.
Value is passed to PCBoard.
ALT-X - PCBoard will exit after current caller logs off.
Value is passed to PCBoard.
WATCHDOG/CTTY/ANSI.SYS
----------------------
CTTY and WATCHDOG are not required and should not be used with
this program. LOTTERY contains its own communication routines
which monitor the COM port. If carrier is lost, it will return
to PCBoard where the BBS will log the user off the system.
ANSI.SYS, or something similar, is required for LOTTERY to
function properly!
DISTRIBUTION
------------
LOTTERY is COPYRIGHTED by Richard Paquette, with all rights reserved.
This program is being distributed via the SHAREWARE concept and as
such, may be copied freely with the following restrictions:
* The program must be supplied in it's original
unmodified form, including documentation.
* LOTTERY may not be distributed as part of any
commercial application or service without the
express, written consent of the author.
* Vendors of Shareware/Public Domain software may
not distribute this program without the express,
written consent of the author.
REGISTRATION
------------
LOTTERY represents many hours of programming and the author
deserves just compensation for his time, efforts and expertise.
If you find this program to be of some value and you continue
to use it on your BBS system, you must return the registration
form provided along with the registration fee. Registration
entitles you to free upgrades via modem from The Livewire's Support
Conference for a period of one year. Payments should be made in
the form of a check or money order (do NOT send cash!). Foreign
orders must be in U.S. funds drawn on a U.S. bank. You may also call
The Livewire BBS and register online via Visa or Mastercard by
typing REGISTER from the Main Board.
Suggestions and/or comments may be sent to the address below or
via electronic mail:
HUBSNJ for RelayNet and Node ID is: LIVEWIRE
Richard Paquette
The Livewire BBS
Public Free Access Node: (609) 235-5297 MNP/5 - 300/1200/2400
Access to all other nodes after registering a door.
----------------------